package kuzmenkov.oip.model;

import java.util.Date;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Class presents the db tables "comment"
 * User: Michael Kuzmenkov
 * Date: 18.03.2009
 * Time: 18:09:44
 */
public class Comment {
    /**
     * The primary key
     */
    private Long commentId;
    /**
     * Time when comment was sent
     */
    private Timestamp sendingDate;
    /**
     * The comment proper 
     */
    private String message;
    /**
     * User who wrote it
     */
    private User user;
    /**
     * The commented module
     */
    private Module module;

    public Long getCommentId() {
    return commentId;
}

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Timestamp getSendingDate() {
        return sendingDate;
    }

    public void setSendingDate(Timestamp sendingDate) {
        this.sendingDate = sendingDate;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Module getModule() {
        return module;
    }

    public void setModule(Module module) {
        this.module = module;
    }
}
